package com.jsbs.iam.auth.mapper;

import com.jsbs.iam.auth.entity.IamRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IamRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IamRole record);

    int insertSelective(IamRole record);

    IamRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IamRole record);

    int updateByPrimaryKey(IamRole record);

    /**
     * 根据角色编码查询应用编码
     * @param userCode
     * @return
     */
    List<String> getApplyCodeList (@Param("userCode") String userCode);
}